import java.util.Scanner;
public class Lab02_Task3 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner s = new Scanner(System.in);
System.out.println("Enter your name: ");
String name = s.next();
System.out.println("Enter your year of birth: ");
int year = s.nextInt();
int age = 2019-year;
String agestring = Integer.toString(age);
agestring = agestring.substring(0, agestring.length()-1);
System.out.println("Hello "+name+", you have lived for "+agestring+" decade(s)");
}
}